package modules
{
	import asf.sections.Section;
	import asf.views.View;
	
	import com.netoleal.utils.TraceUtils;
	
	import flash.events.Event;
	
	public class SectionView2 extends View
	{
		public function SectionView2( p_section:Section )
		{
			super( p_section );
			
			ctrace( this.section.id );
			
			graphics.beginFill( 0xFFCC00 );
			graphics.drawRect( 0, 0, 600, 400 );
			
			addEventListener( Event.ADDED_TO_STAGE, added );
		}
		
		private function added( evt:Event ):void
		{
			removeEventListener( Event.ADDED_TO_STAGE, added );
			
			ctrace( TraceUtils.getFullPath( this ) );
			ctrace( section._.message );
		}
	}
}